<?php
namespace app\public_module\controller;

use \app\common\controller\Base;

class Department extends Base
{
    /*
     * 继承父类的_initialize()
     */
    public function _initialize()
    {
        parent::_initialize();
    }

    public function index()
    {
        $this->redirect("public_module/department/department_show_list");//页面的跳转
    }

    /*
     *展示部门职位
     */
    public function department_show_list()
    {
        $department_list = db('department')->where('status',1)->select();
        $this->assign("department_list",$department_list);
        return view();
    }
}